package com.kungfuhacking.wristbandpro.find.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.kungfuhacking.wristbandpro.base.bean.Basebean;

/**
 * Created by Aaron on 17/7/17.
 */

public class ConfirmBean extends Basebean implements Parcelable {

    private DataEntity data;

    public static Creator<ConfirmBean> getCREATOR() {
        return CREATOR;
    }

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }


    public static class DataEntity implements Parcelable {
        private String id;
        private String phoneNum;
        private String iccid;
        private String imei;
        private String checkUser;
        private String checkTime;
        private String state;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPhoneNum() {
            return phoneNum;
        }

        public void setPhoneNum(String phoneNum) {
            this.phoneNum = phoneNum;
        }

        public String getIccid() {
            return iccid;
        }

        public void setIccid(String iccid) {
            this.iccid = iccid;
        }

        public String getImei() {
            return imei;
        }

        public void setImei(String imei) {
            this.imei = imei;
        }

        public String getCheckUser() {
            return checkUser;
        }

        public void setCheckUser(String checkUser) {
            this.checkUser = checkUser;
        }

        public String getCheckTime() {
            return checkTime;
        }

        public void setCheckTime(String checkTime) {
            this.checkTime = checkTime;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.phoneNum);
            dest.writeString(this.iccid);
            dest.writeString(this.imei);
            dest.writeString(this.checkUser);
            dest.writeString(this.checkTime);
            dest.writeString(this.state);
        }

        public DataEntity() {
        }

        protected DataEntity(Parcel in) {
            this.id = in.readString();
            this.phoneNum = in.readString();
            this.iccid = in.readString();
            this.imei = in.readString();
            this.checkUser = in.readString();
            this.checkTime = in.readString();
            this.state = in.readString();
        }

        public static final Parcelable.Creator<DataEntity> CREATOR = new Parcelable.Creator<DataEntity>() {
            @Override
            public DataEntity createFromParcel(Parcel source) {
                return new DataEntity(source);
            }

            @Override
            public DataEntity[] newArray(int size) {
                return new DataEntity[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.data, flags);
    }

    public ConfirmBean() {
    }

    protected ConfirmBean(Parcel in) {
        this.data = in.readParcelable(DataEntity.class.getClassLoader());
    }

    public static final Parcelable.Creator<ConfirmBean> CREATOR = new Parcelable.Creator<ConfirmBean>() {
        @Override
        public ConfirmBean createFromParcel(Parcel source) {
            return new ConfirmBean(source);
        }

        @Override
        public ConfirmBean[] newArray(int size) {
            return new ConfirmBean[size];
        }
    };
}
